package com.yanqu.road.server.logic.system;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.throwingPot.ThrowingPotModule;
import com.yanqu.road.server.manger.activity.ActivityMgr;
import com.yanqu.road.server.manger.activity.throwingPot.ThrowingPotMgr;

public class SystemOpenThrowingPot extends BaseSystemOpen {
    public SystemOpenThrowingPot(int systemId, GamePlayer player) {
        super(systemId, player);
    }

    @Override
    public void initSystem() {
        ActivityInfo activityInfo = ThrowingPotMgr.getActivityInfo();
        if (activityInfo != null) {
            if (ActivityMgr.activityInShowTime(activityInfo)) {
                player.getModule(ThrowingPotModule.class).syncActivity();
            }
        }
    }
}
